import request from '@/utils/request'

// 查询学历学位信息列表
export function listDegree(query) {
  return request({
    url: '/teacher/degree/list',
    method: 'get',
    params: query
  })
}

// 查询学历学位信息详细
export function getDegree(recordid) {
  return request({
    url: '/teacher/degree/' + recordid,
    method: 'get'
  })
}

// 新增学历学位信息
export function addDegree(data) {
  return request({
    url: '/teacher/degree',
    method: 'post',
    data: data
  })
}

// 修改学历学位信息
export function updateDegree(data) {
  return request({
    url: '/teacher/degree',
    method: 'put',
    data: data
  })
}

// 删除学历学位信息
export function delDegree(recordid) {
  return request({
    url: '/teacher/degree/' + recordid,
    method: 'delete'
  })
}

// 导出学历学位信息
export function exportDegree(query) {
  return request({
    url: '/teacher/degree/export',
    method: 'get',
    params: query
  })
}